package com.world.business.table.controller;

import com.world.business.table.domain.Table;
import com.world.business.table.service.ITableService;
import com.world.common.domain.ResponseData;
import com.world.common.domain.SuccessResponseData;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 表
 *
 * @author WangYX
 * @version 1.0.0
 * @date 2023/09/25 10:30
 */
@Api(tags = "表")
@RestController
@RequestMapping("/table")
public class TableController {

    @Resource
    private ITableService tableService;

    @GetMapping("")
    public ResponseData<List<Table>> list() {
        return new SuccessResponseData<>(tableService.getList());
    }
}
